power supply modeling pfc phase field phase field crystals power simulation open source paper physics power factor correction